Skip to main content

WiFi Hacking

Below are the steps to perfrom wifihacking.

1. Discovering Interface​

Checking USB interface​

This command will help you out to list down USB interfaces and you can be sure that your device is there.

lsusb

alt text

Checking your wireless interface​

This command will help you to List down the wireless interface for me wlan0 is my wireless interface.

iwconfig

alt text

2. Target Discovery​

Looking at the interface details​

sudo airmon-ng    

alt text

Killing Unwanted process​

There are processes that might cause issues in our attack so we kill those process

# list process
sudo airmon-ng check

## Kill process
sudo airmon-ng check kill

alt text alt text

Putting interface into monitor mode​

Once the processes are killed we can put our interface wlan0 into monitor mode so that we can discover and capture packets.

# monitor mode
sudo airmon-ng start wlan0

# Confirm mode
sudo iw dev wlan0 info

# disable monitor mode
sudo airmon-ng stop wlan0mon

alt text alt text

3. Sniffing data​

Listing all the wireless network around​

# airodump 
sudo airodump-ng wlan0

alt text

Sniffing for particular wireless network​

└─$ sudo airodump-ng -c 1 --bssid 6C:4F:89:AD:F5:36 -w MYdump wlan0
  • -c : Channel Number identified from sniffing.
  • --bssid : MAC access of the target interface.
  • -w : wireshark format dump file name

alt text

4. Getting the authentication packet​

Set our interface on the target channel​

sudo airmon-ng start wlan0 1

alt text